import Vue from 'vue'
import Vuex from 'vuex'
import app from './modules/app'
import user from './modules/user'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    user
  },
  // 全局状态/方法
  state: {
    // 可添加全局状态
  },
  mutations: {
    // 可添加全局mutations
  },
  actions: {
    // 可添加全局actions
  },
  getters: {
    // 可添加全局getters
  }
})

export default store